package com.yyt.springbootdemorabbitmq.controller;

import com.yyt.springbootdemorabbitmq.sender.HelloSender;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author yeyangtao created at 13:55 2020/8/6
 */
@RestController
public class SendController {
    @Resource
    private HelloSender helloSender;

    @GetMapping("/send/string")
    public void send() {
        helloSender.send();
    }
    @GetMapping("/send/obj")
    public void sendObj() {
        helloSender.sendObj();
    }
}
